package com.kdgc.ibatis.sqlsession;

import com.kdgc.ibatis.config.Configuration;
import com.kdgc.utils.XMLConfigBuilder;

import java.io.InputStream;

public class SqlSessionFactoryBuilder {


    public SqlSessionFactory build(InputStream  in){
        Configuration cfg = XMLConfigBuilder.loadConfiguration(in);
        return new SqlSessionFactoryImpl(cfg);
    }
}
